package com.jml.event;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class EventMain {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(EventConfig.class);
        MyEventService myEventService = context.getBean(MyEventService.class);
        myEventService.testEvent();
    }

}
